<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>会员中心 -  <?php echo C('UU_SITE_NAME');?></title>
<link href="/<?php echo C('UU_TPL_DIR');?>/public/css/user.css" rel="stylesheet" type="text/css">
<link rel="shortcut icon" href="/favicon.ico" />
<link href="/<?php echo C('UU_TPL_DIR');?>/public/css/common.css" rel="stylesheet" type="text/css">
<script src="/<?php echo C('UU_TPL_DIR');?>/public/js/jquery.min.js"></script>
<script src="/<?php echo C('UU_TPL_DIR');?>/public/js/jquery.dialog.js"></script>
<script src="/<?php echo C('UU_TPL_DIR');?>/public/js/common.js"></script>
<script src="/<?php echo C('UU_TPL_DIR');?>/public/js/jquery.disappear.tooltip.js"></script>
<!--[if lt IE 9]>
  <script type="text/javascript" src="/<?php echo C('UU_TPL_DIR');?>/public/js/PIE.js"></script>
  <script type="text/javascript">
    (function($){
        $.pie = function(name, v){
            // 如果没有加载 PIE 则直接终止
            if (! PIE) return false;
            // 是否 jQuery 对象或者选择器名称
            var obj = typeof name == 'object' ? name : $(name);
            // 指定运行插件的 IE 浏览器版本
            var version = 9;
            // 未指定则默认使用 ie10 以下全兼容模式
            if (typeof v != 'number' && v < 9) {
                version = v;
            }
            // 可对指定的多个 jQuery 对象进行样式兼容
            if ($.browser.msie && obj.size() > 0) {
                if ($.browser.version*1 <= version*1) {
                    obj.each(function(){
                        PIE.attach(this);
                    });
                }
            }
        }
    })(jQuery);
    if ($.browser.msie) {
      $.pie('.pie_about');
    };
  </script>
<![endif]-->
<script type="text/javascript">
var ajaxURL="<?php echo RU('ajax/view');?>";
</script>
</head>
<style>
    .sotit {
        width: 120px;
        float: left;
        font-size: 20px;
        padding-top: 35px;
        text-align: right;
        padding-right: 25px;
    }
    .search form{
        width: 430px;
        float: left;
        height: 42px;
        border: 3px #6DBD60 solid;
        background-color: #FFF;
        margin-top: 25px;
        position: relative;
    }
    .so-input{
        border: 0px;
        background-color: #FFFFFF;
        height: 40px;
        width: 380px;
        padding-left: 15px;
    }


    .search .sobtn {
        position: absolute;
        right: -3px;
        top: -3px;
        width: 80px;
        background-color: #6DBD60;
        border: 0px;
        color: #FFFFFF;
        height: 48px;
        font-size: 16px;
        cursor: pointer;
    }
    </style>
<body>

<div class="pagetop">
		<div class="main">
          <div class="welcome link_orange" id="J_welcome">欢迎登录 <?php echo C('UU_SITE_NAME');?>！请 <span><a href="Javascript: void(0)" class="J_user_login">登录</a></span>或<span><a href="Javascript: void(0)" class="J_user_reg">注册</a></span></div>
          <div class="menu link_gray6"><a href="<?php echo C('UU_SITE_DOMAIN');?>/" class="home">网站首页</a>
		  
		  <!-- <a href="#" class="ranking">排行榜</a> <a href="#" class="category">问题分类</a> <a href="#" class="mall">积分商城</a> -->
		   
		   </div>
        	<div class="clear"></div>
        </div>
</div>

<div class="header">
  <div class="logo" style="width: 220px"><a href="/"><img src="http://www.zgxmall.com/data/upload/mall/common/05999185122820637.png"  alt="<?php echo C('UU_SITE_NAME');?>" border="0"/></a></div>
    <!--<div class="sotit">商品</div>-->
    <!--<div class="search" >-->
        <!--<form action="<?php echo RU('article/lists');?>" method="get" id="J_so_from">-->
            <!--<div class="sobox">-->
                <!--<div class="inputbox">-->
                    <!--<input type="text" class="so-input"  name="key"  value="<?php echo ($_REQUEST['key']); ?>" placeholder="请输入关键词">-->
                    <!--<input name="" type="submit" value="搜索" class="sobtn">-->
                <!--</div>-->
            <!--</div>-->
        <!--</form>-->
    <!--</div>-->
    <div class="so"></div>
  <div class="clear"></div>

</div>

<div class="pagenav">
  <div class="navmain link_white">
  <?php $tag_nav_class = new \Common\Taglib\nav();$nav = $tag_nav_class->run(array('listname'=>'nav','cache'=>'0',)); ?>
			<?php if(is_array($nav)): $i = 0; $__LIST__ = $nav;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$nav): $mod = ($i % 2 );++$i;?><div class="li  <?php if($page_as == $nav['pagealias']): ?>select<?php endif; ?>"><a href="<?php echo ($nav["url"]); ?>" target="<?php echo ($nav["target"]); ?>"><?php echo ($nav["title"]); ?></a></div><?php endforeach; endif; else: echo "" ;endif; ?>
    <div class="clear"></div>
  </div>
</div>

<div class="usermain">
  <div class="mleft">
<div class="mu">
	<?php if($user["isadmin"] == '1'): ?><a class="adminbtn" href="<?php echo RU('admin/index');?>" title="后台登录"></a><?php endif; ?>
  <div class="pic"><a href="<?php echo RU('user/set_avatar');?>"><img src="<?php echo ($user["avatar"]); ?>" border="0"></a></div>
			  
			  <a class="uname" href="<?php echo RU('user/set_basic');?>"><?php echo ($user["username"]); ?></a>
			  
			  <div class="exp link_gray3">
					<span class="userLV">LV<?php echo ($user["exp_lv"]); ?></span>经验值：<a href="<?php echo RU('user/set_exp');?>"><?php echo ($user["exp"]); ?>/<?php echo ($lv["exp_max"]); ?></a>
	  </div>
	 
			<div class="progress">
			  <div class="nblock" style="width:<?php echo ($user["percentage"]); ?>"></div>
			</div>
  
	        <div class="gold link_gray3"><?php echo C('UU_GOLD_BYNAME');?>：<a href="<?php echo RU('user/set_gold');?>"><?php echo ($user["gold"]); ?></a></div>			
				
			<div class="lnav">
			<a href="<?php echo RU('user/index');?>" class="mli t0 <?php if($nav_select == 'index'): ?>select<?php endif; ?>">会员中心</a>
			<a href="<?php echo RU('user/question');?>" class="mli t1 <?php if($nav_select == 'question'): ?>select<?php endif; ?>">我的问答</a>
			<a href="<?php echo RU('user/article');?>" class="mli t2 <?php if($nav_select == 'article'): ?>select<?php endif; ?>">我的分享</a>
			<a href="<?php echo RU('user/task');?>" class="mli t3 <?php if($nav_select == 'task'): ?>select<?php endif; ?>">我的任务</a>
			<a href="<?php echo RU('user/msg');?>" class="mli t4 <?php if($nav_select == 'msg'): ?>select<?php endif; ?>">我的消息</a>
			<a href="<?php echo RU('user/set_basic');?>" class="mli t5 <?php if($nav_select == 'set'): ?>select<?php endif; ?>">账号设置</a>
			</div>
			<a class="userlogout J_user_logout" href="Javascript:void(0)">退出登录</a>
		   
</div>
  </div>
  
  <div class="mright">
  
    <div class="sta"> 
	  <div class="sli t1"><div class="count" id="sta_question">.</div><div class="vname">我的提问</div></div>
	  <div class="sli t2"><div class="count" id="sta_answer">.</div><div class="vname">我的回答</div></div>
	  <div class="sli t3"><div class="count" id="sta_acc_rate">.</div><div class="vname">采纳率</div></div>
	  <div class="sli t4"><div class="count" id="sta_answer_click">.</div><div class="vname">帮助人数</div></div>
	  <div class="sli t5"><div class="count" id="sta_count_praise">.</div><div class="vname">收到的赞</div></div>
	  <div class="sli t6"><div class="count" id="sta_gold">.</div><div class="vname">我的<?php echo C('UU_GOLD_BYNAME');?></div></div>
	  <div class="sli t7"><div class="count" id="sta_exp">.</div><div class="vname">我的经验值</div></div>
	  <div class="clear"></div>
	</div>
	
    <div class="mbox">
	  	<div class="utopt">
			  <div class="tit">我的问答</div>
			<a class="snav select" href="<?php echo RU('user/question');?>">我的提问</a>
			<a class="snav" href="<?php echo RU('user/question',array('mods'=>'2'));?>">我的回答</a>
			<div class="clear"></div>
			<a class="more" href="<?php echo RU('user/question');?>">更多</a>
	  </div>
	  
	  
	    <div class="indexque">
	    <?php $tag_question_class = new \Common\Taglib\question();$question = $tag_question_class->run(array('listname'=>'question','type'=>$_GET['type'],'uid'=>$uid,'page'=>'0','num'=>'3','cache'=>'0',)); ?> 
<?php if(is_array($question["list"])): $i = 0; $__LIST__ = $question["list"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$li): $mod = ($i % 2 );++$i;?><div class="qlist">
			<?php if($li["issolve"] == '1' ): ?><div class="td1 type2"><span><?php echo ($li["answercount"]); ?></span><br>解决</div>
			  <?php else: ?>
			  		<?php if($li["answercount"] == 0 ): ?><div class="td1 type0"><span><?php echo ($li["answercount"]); ?></span><br>回答</div>
					<?php elseif($li["answercount"] > 0): ?>
					<div class="td1 type1"><span><?php echo ($li["answercount"]); ?></span><br>回答</div><?php endif; endif; ?>
					<div class="td2"><span><?php echo ($li["click"]); ?></span><br>浏览</div>
					<div class="td3">
							<h4 class="link_gray3"><?php if($li["reward"] > 0 ): ?><span class="reward"><?php echo ($li["reward"]); ?></span><?php endif; ?><a href="<?php echo ($li["url"]); ?>" target="_blank"><?php echo ($li["title"]); ?></a></h4>
							
							 <div class="author link_gray3">
							 <?php if($li["answeruid"] > 0 ): ?><a href="<?php echo ($li["aurl"]); ?>"  target="_blank"><?php echo ($li["aname"]); ?></a> <span> 回复于 <?php echo ($li["answertimestr"]); ?></span> 
							 <?php else: ?>
							  <a href="<?php echo ($li["uurl"]); ?>" target="_blank"><?php echo ($li["uname"]); ?></a><span> 发布于 <?php echo ($li["addtimestr"]); ?></span><?php endif; ?>
							 </div>
							 	<?php if(is_array($li["tags"])): $i = 0; $__LIST__ = $li["tags"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$tagsli): $mod = ($i % 2 );++$i;?><a class="tag" href="<?php echo ($tagsli["tagurl"]); ?>" target="_blank"><?php echo ($tagsli["tag"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?> 
							<a class="del" href="<?php echo RU('user/question_del',array('id'=>$li['id']));?>" onClick="return confirm('你确定要删除吗？')">删除</a>
				   </div>
					<div class="clear"></div>
		</div><?php endforeach; endif; else: echo "" ;endif; ?>
 </div>
<?php if(empty($question["list"])): ?><div class="infoempty"> 暂时木有内容呀～～</div><?php endif; ?>


    </div>
	
	 <div class="mbox">
	  	<div class="utopt">
			  <div class="tit">我的分享</div>
			<a class="snav select" href="<?php echo RU('user/article');?>">全部</a>
			<a class="snav" href="<?php echo RU('user/article',array('exc'=>'1'));?>">精华</a>
			<div class="clear"></div>
			<a class="more" href="<?php echo RU('user/article');?>">更多</a>
	  </div>
	  
	    <div class="indexarticlelist">
	    <?php if(is_array($new["list"])): $i = 0; $__LIST__ = $new["list"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$li): $mod = ($i % 2 );++$i;?><div class="alist">
		 
		 <div class="atit link_gray3">
			      <h4>
			        <?php if($li["excellent"] == '1' ): ?><span class="exc">精华</span><?php endif; ?>
			        <a href="<?php echo ($li["url"]); ?>" target="_blank"><?php echo ($li["title"]); ?></a>		          </h4>
		        </div>
				
				
				 <div class="time link_gray3"><?php echo ($li["addtime_str"]); ?> 上传&nbsp;/&nbsp;人气<span class="co"><?php echo ($li["click"]); ?></span>&nbsp;/&nbsp;推荐<span class="co"><?php echo ($li["praise"]); ?></span>
			        <?php if(!empty($li["tags"])): ?><span class="tag">
			            
			            <?php if(is_array($li["tags"])): $i = 0; $__LIST__ = $li["tags"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$tagsli): $mod = ($i % 2 );++$i;?><a   href="<?php echo ($tagsli["tagurl"]); ?>" target="_blank"><?php echo ($tagsli["tag"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?> 
		              </span><?php endif; ?>
					   <a  class="edit" href="<?php echo RU('user/article_edit',array('id'=>$li['id']));?>">修改</a>
					   <a class="del" href="<?php echo RU('user/article_del',array('id'=>$li['id']));?>" onClick="return confirm('你确定要删除吗？')">删除</a>
		          </div>
				  
			 </div>	  
			<!-- --><?php endforeach; endif; else: echo "" ;endif; ?>
				 
<?php if(empty($new["list"])): ?><div class="infoempty"> 暂时木有内容呀～～</div><?php endif; ?>
</div>


    </div>
	
	
  </div>
   <div class="clear"></div>
</div>
<div class="footernav link_gray6">
<a href="<?php echo C('UU_SITE_DOMAIN');?>/">首页</a>
<?php $tag_intro_class = new \Common\Taglib\intro();$li = $tag_intro_class->run(array('listname'=>'li','cache'=>'0',)); ?>
<?php if(is_array($li["list"])): $i = 0; $__LIST__ = $li["list"];if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$li): $mod = ($i % 2 );++$i;?><span>|</span><a href="<?php echo ($li["url"]); ?>" target="_blank"><?php echo ($li["title"]); ?></a><?php endforeach; endif; else: echo "" ;endif; ?>
</div>  
<div class="footertxt link_gray3">
<a href="http://www.miibeian.gov.cn/" target="_blank"><?php echo C('UU_ICP');?></a>
Powered By <a href="http://www.zgxmall.com" target="_blank"><span class="by">中港星企业服务论坛</span><span class="version"><?php echo C('UU_VERSION');?></span></a>
<?php echo C('UU_COPYRIGHT');?>
<br />
联系地址：深圳市罗湖区人民南路国贸大厦17、19楼&nbsp;&nbsp;&nbsp;&nbsp;联系电话：0755-82211688
 
<div class="statistics"><?php echo C('UU_STATISTICS');?></div>
</div>

<script type="text/javascript">
$(document).ready(function()
{
//统计
URL="<?php echo RU('user/statistics');?>";
$.getJSON(URL, { act: "statistics"}, function(json){
		if (json.status==0){
			disapperTooltip("remind", json.content);
		}else if (json.status==1){
 			 $('#sta_question').text(json.sta.question);
			 $('#sta_answer').text(json.sta.answer);
			 $('#sta_acc_rate').text(json.sta.acc_rate);
			 $('#sta_answer_click').text(json.sta.answer_click);
			 $('#sta_count_praise').text(json.sta.count_praise);
			 $('#sta_gold').text(json.sta.gold);
			 $('#sta_exp').text(json.sta.exps);
		}else{
			disapperTooltip("remind","未知错误");
		}
});
 
 
});
</script>
</body>
</html>